package com.wu.xtkong.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.wu.xtkong.domain.User;
import com.wu.xtkong.service.UserInfoService;
import com.wu.xtkong.service.UserService;

@Controller
@RequestMapping("/user")
public class UserController {
	@Autowired
	private UserService userService;
	@Autowired
	private UserInfoService userInfoService;

	@RequestMapping("/getUser")
	@ResponseBody
	public User getUser() {
		return userInfoService.getUserName("周杰伦");
		// return userService.getUserInfo("哈哈-1");
	}

}
